<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/14
 * Time: 16:00
 */
namespace app\common\lib;

class Redis
{
    /**
     * 短信redis前缀
    */
    public static $pre = 'sms_';
    /**
     * 用户redis前缀
    */
    public static $user_pre = 'user_';

    public static function smsKey($phone)
    {
        return self::$pre . $phone;
    }

    public static function userKey($phone)
    {
        return self::$user_pre . $phone;
    }
}